package com.manager.system.service;

import com.manager.common.vo.PageVO;
import com.manager.model.Dictionary_Data;
import com.manager.model.System_Permission;
import net.sf.json.JSONArray;

import java.util.List;
import java.util.Map;

public interface DictionaryDataService {

	public PageVO getDicMap(Dictionary_Data model);
	
	public void insertDic(Dictionary_Data model);
	
	public void updateDic(Dictionary_Data model);
	
	public void deleteDic(Dictionary_Data model);
	
	public List<Dictionary_Data> getDicType();
	
	/**
	 * TODO 判断重复
	 * @param model
	 * @return
	 */
	public boolean isDataExsit(Dictionary_Data model);
	
	public void initDictonaryData();
	
	/**
	 * 根据分组标记和下拉是获取显示内容
	 * @param model
	 * @return
	 */
	public Dictionary_Data getDicByGroupIdAndValue(Dictionary_Data model);

	public Dictionary_Data getDicByGroupIdAndText(Dictionary_Data model);

	public List<Dictionary_Data> getAllDicData(String pId);

	public List<Dictionary_Data> getDicTreeDataByGroupId(Dictionary_Data model);
	
	/**
	 * 根据分组标记和下拉是获取显示内容
	 * @param groupId
	 * @param value
	 * @return
	 */
	public String getDicByGroupIdAndValue(String groupId, String value);

	public List<Dictionary_Data> getDataListByDicGroupId(String groupId);

	public List<Dictionary_Data> getChildrenDataByParentId(String parentId);

	public List<Dictionary_Data> getTreeDicData();

	public List<Dictionary_Data> getDicDataByGroupId(String groupId);

	public JSONArray getProcessItemData(String parentId);

	public List<Dictionary_Data> getMenuTreeDicData();

	public List<Dictionary_Data> getDicTreeData();
}
